package wqh.service;

import wqh.domain.GeoBuilding;

import java.util.List;

/**
 * Created by devts on 2016/9/25.
 */
public interface GeoBuildingService {

    List<GeoBuilding> findAllRecord();

    GeoBuilding findRecordById(Integer id);

    int updateRecord(GeoBuilding geoBuilding);

    int insertRecord(GeoBuilding geoBuilding);

    int deleteRecord(Integer id);

    GeoBuilding findAllByParentID(Integer id);

    List<GeoBuilding> findAllByNameAndLevel(String name, Byte level);

    List<GeoBuilding> findAllByNameAndParentID(String name, Integer parentID);

    List<GeoBuilding> findAllByNameAndParentIDAndLevel(String name, Integer parentID, Byte level);

    int updateMap(String picture, Integer id);

    String findNameById(Integer id);

}
